import request from '@/utils/request'

// 查询用户订单申诉列表
export function listUserOrderAppeal(query) {
  return request({
    url: '/system/userOrderAppeal/list',
    method: 'get',
    params: query
  })
}

// 查询用户订单申诉详细
export function getUserOrderAppeal(id) {
  return request({
    url: '/system/userOrderAppeal/' + id,
    method: 'get'
  })
}

// 新增用户订单申诉
export function addUserOrderAppeal(data) {
  return request({
    url: '/system/userOrderAppeal',
    method: 'post',
    data: data
  })
}

// 修改用户订单申诉
export function updateUserOrderAppeal(data) {
  return request({
    url: '/system/userOrderAppeal',
    method: 'put',
    data: data
  })
}

// 删除用户订单申诉
export function delUserOrderAppeal(id) {
  return request({
    url: '/system/userOrderAppeal/' + id,
    method: 'delete'
  })
}

// 导出用户订单申诉
export function exportUserOrderAppeal(query) {
  return request({
    url: '/system/userOrderAppeal/export',
    method: 'get',
    params: query
  })
}